﻿using System;

namespace BEGDC.Utility.Configuration
{
	/// <summary>
	/// Summary description for ConfigConst.
	/// </summary>
	public class ConfigConst
	{
		private static string key = null;

		public static string Key
		{
			get
			{
				if (key == null)
				{
					GenerateKey();
				}
				return key;
			}
		}

		private static void GenerateKey()
		{
			int[] indexs = new int[8]{ 17, 35, 18, 19,29, 7, 1, 8 };
			key = "";

			for(int i=0; i<indexs.Length; i++)
			{
				char chr = '0';
				chr = Convert.ToChar(Convert.ToInt32(chr) + indexs[i]);
				key += chr;
			}
		}
	}
}